package com.yami.shop.bean.meituan;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yami.shop.bean.enums.OrderStatus;
import lombok.Data;

import java.util.Date;

/**
 * 订单状态信息
 */
@Data
@TableName("meituan_OrderStatusInfo")
public class OrderStatusInfo {
    /**
     * 主键
     */
    private Long id;
    /**
     * 配送活动标识
     */
    private String deliveryId;

    /**
     * 美团配送内部订单id，最长不超过32个字符
     */
    private String mtPeisongId;

    /**
     * 外部订单号，最长不超过32个字符
     */
    private String orderId;

    /**
     * 订单状态代码
     */
    private String status;

    /**
     * 配送员姓名（订单已被骑手接单后会返回骑手信息）
     */
    private String courierName;

    /**
     * 配送员电话（订单已被骑手接单后会返回骑手信息）
     */
    private String courierPhone;

    /**
     * 取消原因id
     */
    private int cancelReasonId;

    /**
     * 取消原因详情，最长不超过256个字符
     */
    private String cancelReason;

    /**
     *创建时间
     */
    private Date createTime;



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getDeliveryId() {
        return deliveryId;
    }

    public void setDeliveryId(String deliveryId) {
        this.deliveryId = deliveryId;
    }

    public String getMtPeisongId() {
        return mtPeisongId;
    }

    public void setMtPeisongId(String mtPeisongId) {
        this.mtPeisongId = mtPeisongId;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCourierName() {
        return courierName;
    }

    public void setCourierName(String courierName) {
        this.courierName = courierName;
    }

    public String getCourierPhone() {
        return courierPhone;
    }

    public void setCourierPhone(String courierPhone) {
        this.courierPhone = courierPhone;
    }

    public int getCancelReasonId() {
        return cancelReasonId;
    }

    public void setCancelReasonId(int cancelReasonId) {
        this.cancelReasonId = cancelReasonId;
    }

    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "OrderStatusInfo {" +
                "delivery_id=" + deliveryId +
                ", mt_peisong_id=" + mtPeisongId +
                ", order_id=" + orderId +
                ", status=" + status +
                ", courier_name=" + courierName +
                ", courier_phone=" + courierPhone +
                ", cancel_reason_id=" + cancelReasonId +
                ", cancel_reason=" + cancelReason +
                '}';
    }
}
